class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        num = len(nums)
        for i in range(num-1, 0, -1):
            print(i)
            item = nums[i]
            tmp = nums[:i]
            other = target - item
            if other in tmp:
                cnt = nums.index(other)       
                return [i, cnt]